<%@ page  isELIgnored="false" contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <title>工作笔记列表</title>
</head>
<body>
<h2>工作笔记</h2>
<a href="${pageContext.request.contextPath }/add.html">添加笔记</a>
<table class="providerTable" border="1">
    <tr class="firstTr">
        <th width="100px">笔记标题</th>
        <th width="100px">笔记分类</th>
        <th width="100px">编写时间</th>
        <th width="100px">操作</th>
    </tr>
    <c:forEach var="work" items="${worklist}">
        <tr>
            <td>
                <span>${work.getTitle()}</span>
            </td>
            <td>
							<span>
								<c:if test="${work.getType()==1}">技术</c:if>
								<c:if test="${work.getType()==2}">行政</c:if>
                                <c:if test="${work.getType()==3}">人事</c:if>
							</span>
            </td>
            <td>
                <span>${work.getCreateDate()}</span>
            </td>
            <td>
                    <span><a class="viewUser" href="${pageContext.request.contextPath }/selwork.html?id=${work.id}">查看</a></span>
            </td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
